package OBSZARY_def;

import java.util.Hashtable;

import A002_Obrazek._A_OBRAZEK;
import Root.DO_Start_AObrazek;

enum ENUM_obszary {
	
	
	minimapa ("LGR_MM", "LDR_MM", "PGR_MM", "PDR_MM", 2000),
	hp ("HP", null, null, null, 500),
	sheld ("SHELD", null, null, null, 500);
	
	private final String LGR;
	private final String LDR;
	private final String PGR;
	private final String PDR;
	private int go;
	Hashtable<String, _A_OBRAZEK> s;

	private ENUM_obszary( String LGR, String LDR, String PGR, String PDR, int go ) {
		this.LGR = LGR;
		this.LDR = LDR;
		this.PGR = PGR;
		this.PDR = PDR;
		this.go = go;
		s = DO_Start_AObrazek._ListaObrazków;
	}
	
	public synchronized final String _get_lgr() {return LGR;}
	public synchronized final _A_OBRAZEK _get_lgrObr() { if (LGR!=null){return s.get(LGR);} else return null;}

	public synchronized final String _get_ldr() {return LDR;}
	public synchronized final _A_OBRAZEK _get_ldrObr() { if (LDR!=null){return s.get(LDR);} else return null;}
	
	public synchronized final String _get_pgr() {return PGR;}
	public synchronized final _A_OBRAZEK _get_pgrObr() { if (PGR!=null){return s.get(PGR);} else return null;}
	
	public synchronized final String _get_pdr() {return PDR;}
	public synchronized final _A_OBRAZEK _get_pdrObr() { if (PDR!=null){return s.get(PDR);} else return null;}

	public synchronized int getGo() {return go;}

}

enum ENUM_obszaryF {
	
	minimapa (1, 1, 1, 1),
	hp (1, 1, 1, 1),
	sheld (1, 1, 1, 1);
	
	private final int lewo;
	private final int gora;
	private final int prawo;
	private final int dol;
	
	private ENUM_obszaryF( int lewo, int gora, int prawo, int dol ) {
		this.lewo = lewo;
		this.gora = gora;
		this.prawo = prawo;
		this.dol = dol;

	}

	public synchronized final int getLewo() { return lewo;}
	public synchronized final int getGora() {return gora;}
	public synchronized final int getPrawo() {return prawo;}
	public synchronized final int getDol() {return dol;}
	
}
